import {
	createSSRApp
} from 'vue'
import App from './App'
import store from './store' // store
import {
	install
} from './plugins' // plugins
import './permission' // permission
import {
	useDict
} from '@/utils/dict'
import uviewPlus from '@/uni_modules/uview-plus'


export function createApp() {
	const app = createSSRApp(App)
	app.use(store)
	app.use(uviewPlus)
	app.config.globalProperties.useDict = useDict
	install(app)
	return {
		app
	}
}